import request from '@/utils/request'
const BASE_URL = '/apis'

export function getAlarmList(param) {
  return request({
    url: BASE_URL + '/api/v1/notification/alerts' + param,
    method: 'get'
  })
}

export function createAlarm(data, param) {
  return request({
    url: BASE_URL + '/alarms' + param,
    method: 'post',
    data: data
  })
}

export function deleteAlarm(param) {
  return request({
    url: BASE_URL + '/alarms' + param,
    method: 'delete'
  })
}
